package com.migo.service.impl;

import com.migo.dao.FirmwareDao;
import com.migo.entity.FirmwareEntity;
import com.migo.service.FirmwareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("firmwareService")
public class FirmwareServiceImpl implements FirmwareService {

	@Autowired
	private FirmwareDao firmwareDao;
	
	@Override
	public FirmwareEntity queryObject(Integer id){
		return firmwareDao.queryObject(id);
	}
	
	@Override
	public List<FirmwareEntity> queryList(Map<String, Object> map){
		return firmwareDao.queryList(map);
	}

	@Override
	public List<FirmwareEntity> queryFirmwareList(Map<String, String> map) {
		return firmwareDao.queryFirmwareList(map);
	}

	@Override
	public List<FirmwareEntity> queryModelList(Map<String, String> map) {
		return firmwareDao.queryModelList(map);
	}

	@Override
	public List<Map<String, Object>> queryFirmwareMap(Map<String, String> map) {
		return firmwareDao.queryFirmwareMap(map);
	}

	@Override
	public List<FirmwareEntity> queryFirmwareObjects(Map<String, String> map) {
		return firmwareDao.queryFirmwareObjects(map);
	}

	@Override
	public String  queryVersionTime(Map<String, String> map) {
		return firmwareDao.queryVersionTime(map);
	}

	@Override
	public List<Map<String, Object>> queryNextVersionList(Map<String, String> map) {
		return firmwareDao.queryNextVersionList(map);
	}

	@Override
	public List<Map<String, Object>>  queryMaxVersionList(Map<String, String> map) {
		return firmwareDao.queryMaxVersionList(map);
	}

	@Override
	public int queryTotal(Map<String, Object> map){
		return firmwareDao.queryTotal(map);
	}
	
	@Override
	public void save(FirmwareEntity firmware){
		firmwareDao.save(firmware);
	}
	
	@Override
	public void update(FirmwareEntity firmware){
		firmwareDao.update(firmware);
	}
	
	@Override
	public void delete(Integer id){
		firmwareDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		firmwareDao.deleteBatch(ids);
	}
	
}
